package acs.offer.server;

import java.util.HashMap;
import java.util.Map;

import acs.offer.collection.Params;
import acs.offer.pojo.RequestEnum;
import acs.offer.pojo.TranstractDate;

public class DmsContext {

	private int currentState = STATE_INIT;

	private static final int STATE_INIT = 1;
	private static final int STATE_BUSY = 2;
	private Map<RequestEnum, DmsTask> taskMap = new HashMap<>();

	public void handleEvent(Params param) {
		TranstractDate request = param.get("request");
		RequestEnum requestEnum = request.getRequestEnum();
		
	}

	private void notifyClickTask(Params param) {
		TranstractDate request = param.get("request");
		RequestEnum requestEnum = request.getRequestEnum();
		DmsTask dmsTask = taskMap.get(request.getRequestEnum());
		if (dmsTask == null) {
			throw new RuntimeException("context 没有对应的task");
		}

	}
}
